<?php
// +----------------------------------------------------------------------
// | Tpli [ WE ONLY DO WHAT IS NECESSARY ]
// +----------------------------------------------------------------------
// | Author 荒年 < 931274989@qq.com >
// +----------------------------------------------------------------------
// | Explain 文章表
// +----------------------------------------------------------------------

namespace app\admin\model;
use \think\Model;
class Article extends Model
{
	public function cate()
  {
    //关联分类表 一对一
    return $this->belongsTo('Cate','article_cate_id','id');
  }

  public function admin()
  {
    //关联角色表 一对一
    return $this->belongsTo('Admin','admin_id','id');
  }
  
}
